﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using ConsoleWeb;
using Microsoft.AspNetCore.Hosting;

namespace JHService
{
    public class HttpProgram
    {
        public void StartHttpService()
        {
            var webHostBuilder = new WebHostBuilder()
                .UseUrls("http://*:2406")//配置监听端口
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseStartup<Startup>()
                .Build();
            webHostBuilder.Run();
        }
    }

}
